package com.dzl.integral.dao;

import com.dzl.base.mapper.BaseMapper;
import com.dzl.integral.pojo.WelfareIntegralRecord;
import com.dzl.integral.pojo.query.WelfareIntegralRecordQuery;
import com.dzl.integral.pojo.vo.WelfareIntegralRecordVo;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 积分充值审核表(WelfareIntegralRecord)表数据库访问层
 * @author wangjian
 * @date 2021-09-06 15:12:42
 */
@Repository
public interface WelfareIntegralRecordMapper extends BaseMapper<WelfareIntegralRecord> {

    /**
     * 查询积分充值记录列表
     * @date 2021/9/6 0006 15:53
     * @author wangjian
     * @param welfareIntegralRecordQuery 查询条件
     * @return java.util.List<com.dzl.integral.pojo.vo.WelfareIntegralRecordVo>
     */
    List<WelfareIntegralRecordVo> selectIntegralRecordList(WelfareIntegralRecordQuery welfareIntegralRecordQuery);

    /**
     * 查询未分发的或者已分发还有多的钱的积分充值记录
     * @date 2021/9/6 0006 15:53
     * @author wangjian
     * @param welfareIntegralRecordQuery 查询条件
     * @return java.util.List<com.dzl.integral.pojo.vo.WelfareIntegralRecordVo>
     */
    List<WelfareIntegralRecordVo> selectIntegralRecordNoGrantOrIsGrantButHasIntegralList(WelfareIntegralRecordQuery welfareIntegralRecordQuery);
    /**
     * 查询出满足自动到账的积分充值记录
     * @date 2021/9/8 0008 9:32
     * @author wangjian
     * @param
     * @return java.util.List<com.dzl.integral.pojo.WelfareIntegralRecord>
     */
    List<WelfareIntegralRecordVo> selectIntegralRechargeSuccessList();

    /**
     * 获取各状态下的充值记录数
     * @date 2021/9/8 0008 16:44
     * @author wangjian
     * @param welfareIntegralRecordQuery 查询条件
     * @return java.util.List<java.lang.Integer>
     */
    List<Integer> selectIntegralRecordCount(WelfareIntegralRecordQuery welfareIntegralRecordQuery);


}